﻿using System.Web.Mvc;

namespace GSLMS.WebAPP.Areas.DianDang
{
    public class DianDangAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "DianDang";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
              "DianDang_BMAudit",
              "DianDang/BMAudit/{controller}/{action}/{id}",
              new { action = "Index", id = UrlParameter.Optional }
          );
            context.MapRoute(
             "DianDang_FKApply",
             "DianDang/FKApply/{controller}/{action}/{id}",
             new { action = "Index", id = UrlParameter.Optional }
         );
            context.MapRoute(
            "DianDang_FKAudit",
            "DianDang/FKAudit/{controller}/{action}/{id}",
            new { action = "Index", id = UrlParameter.Optional }
        );
            context.MapRoute(
               "DianDang_Apply",
               "DianDang/Apply/{controller}/{action}/{id}",
               new { action = "Index", id = UrlParameter.Optional }
           );

            context.MapRoute(
                "DianDang_default",
                "DianDang/{controller}/{action}/{id}",
                new { action = "Index", id = UrlParameter.Optional }
            );
        }
    }
}
